package org.hzero.exam.infra.repository.impl;

import org.hzero.exam.api.dto.OrderItemDTO;
import org.hzero.exam.domain.entity.HodrSoHeader;
import org.hzero.exam.domain.repository.HodrSoHeaderRepository;
import org.hzero.exam.infra.mapper.HodrSoHeaderMapper;
import org.hzero.mybatis.base.impl.BaseRepositoryImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 马旭阳
 * @date2019/8/5
 */
@Repository
public class HodrSoHeaderRepositoryImpl extends BaseRepositoryImpl<HodrSoHeader> implements HodrSoHeaderRepository {
   @Autowired
    private HodrSoHeaderMapper hodrSoHeaderMapper;
    @Override
    public List<HodrSoHeader> selectByAny(String orderNumber,Long companyId,Long customerId,String orderStatus,Long itemId) {
        return hodrSoHeaderMapper.selectByAny(orderNumber,companyId,customerId,orderStatus,itemId);
    }

    @Override
    public void updateByOrderStatus(String orderStatus) {
        hodrSoHeaderMapper.updateByOrderStatus(orderStatus);
    }

    @Override
    public HodrSoHeader selectByOrdernumber(String orderNumber) {
        return hodrSoHeaderMapper.selectByOrdernumber(orderNumber);
    }


}
